<template>
  <div>
    <wang-editor v-model="content"></wang-editor>

    <div class="mt-5">
      <div v-html="content"></div>
    </div>
  </div>
</template>

<script>
import WangEditor from '@/components/WangEditor'

export default {
  components: {
    WangEditor,
  },
  props: {},
  data() {
    return {
      content: '<p>同步内容设置</p>',
    }
  },
  computed: {},
  watch: {},
  created() {
    setTimeout(() => {
      this.content = '<p>异步内容设置</p>'
    }, 2000)
  },
  mounted() {},
  methods: {},
}
</script>

<style lang="scss" scoped></style>
